<!--
@author	Yi Bo <etng2004@gmail.com>
@version	$Id: announce_list.php 37 2007-09-01 03:11:34Z etng2004 $
@copyrithg	2006-2007 ETE.CN
@license 	PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
-->
<?php
$this->declareVars();
echo $this->render('header.php');
/*$this->dump($this->pager);
$this->dump($this->announces);*/
?>
<h3>最新公告<span>  <a href="<?php echo $this->module_url; ?>/announce/feed/type/atom">ATOM</a>
<a href="<?php echo $this->module_url; ?>/announce/feed/type/rss">RSS</a></span></h3>
<ul>
<?php
if(sizeof($this->announces)):
foreach ($this->announces as $announce):
?>
<li>
<a href="<?php echo $this->module_url; ?>/announce/view/id/<?php echo $announce['id']; ?>"><?php echo $announce['title']; ?></a><span>
<?php echo date('Y-m-d', $announce['created_at']); ?></span></li>
<?php
endforeach;
else:
?>
<li>暂时没有公告！</li>
<?php
endif;
?>
</ul>
<?php echo $this->render('footer.php');?>
